﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace BhServer
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            ProgNetComponents.Wcf.AppUpdate.BaseAppUpdater u = new ProgNetComponents.Wcf.AppUpdate.BaseAppUpdater();
            u.AppDirectory = Application.StartupPath;
            u.AppName = "BH Server";
            u.RunableName = "BhServer.exe";
            u.RunAfterUpdate = true;
            u.Version = Application.ProductVersion;

            string xml = u.ToString();

            ProgNetComponents.Wcf.AppUpdate.BaseAppUpdater u2 = new ProgNetComponents.Wcf.AppUpdate.BaseAppUpdater();
            u2.FromString(xml);
            
            var u3 = ProgNetComponents.Serialization.SerializationTools.Deserialize(xml);

            Application.Run(new Form1());
        }
    }
}
